import { configureStore } from "@reduxjs/toolkit";
import balanceSlice from "./slices/balanceSlice";
import orderSlice from "./slices/orderSlice";

const store = configureStore({
    reducer: {
        // 余额reducer
        balance: balanceSlice,
        order: orderSlice
    },
    middleware: (getDefaultMiddleware) => getDefaultMiddleware({
        // 关闭redux的序列化检查
        serializableCheck: false
    }),
});

export default store;